<?php

// Composer: "fzaninotto/faker": "v1.3.0"
use Faker\Factory as Faker;

class MessageTableSeeder extends Seeder {

	public function run()
	{
		$faker = Faker::create();

		foreach(range(1, 10) as $index)
		{
			Message::create([
				'to_user_id' => $faker->regexify('1|2'),
				'from_user_id' => $faker->regexify('[1,2,3]'),
				'message_type' => 1,
				'message_content' => $faker->text,
			]);
		}
	}

}